Correct test cases that open new window to use the right function. (#35354) 
diff --git a/custom-elements/throw-on-dynamic-markup-insertion-counter-reactions-xml-parser.xhtml b/custom-elements/throw-on-dynamic-markup-insertion-counter-reactions-xml-parser.xhtml index 29859ba..13f6645 100644 --- a/custom-elements/throw-on-dynamic-markup-insertion-counter-reactions-xml-parser.xhtml +++ b/custom-elements/throw-on-dynamic-markup-insertion-counter-reactions-xml-parser.xhtml 
@@ -97,32 +97,32 @@  }, 'document.writeln must throw an InvalidStateError when processing custom element reactions for a synchronous constructed custom element');    promise_test(async function () { - window.another_window = await create_window_in_test_async(this); + window.another_window = await create_window_in_test(this);  const result = await custom_element_reactions_in_parser(this, `top.another_window.document.open()`);  assert_equals(result.exception, null);  }, 'document.open() of another document must not throw an InvalidStateError when processing custom element reactions for a synchronous constructed custom element');    promise_test(async function () { - window.another_window = await create_window_in_test_async(this); + window.another_window = await create_window_in_test(this);  const result = await custom_element_reactions_in_parser(this, `top.another_window.document.open('text/html')`);  assert_equals(result.exception, null);  }, 'document.open("text/html") of another document must not throw an InvalidStateError when processing custom element reactions for a synchronous constructed custom element');    promise_test(async function () { - window.another_window = await create_window_in_test_async(this); + window.another_window = await create_window_in_test(this);  const result = await custom_element_reactions_in_parser(this, `top.another_window.document.close()`);  assert_equals(result.exception, null);  }, 'document.close() of another document must not throw an InvalidStateError when processing custom element reactions for a synchronous constructed custom element');    promise_test(async function () { - window.another_window = await create_window_in_test_async(this); + window.another_window = await create_window_in_test(this);  const result = await custom_element_reactions_in_parser(this, `top.another_window.document.write('<b>some text</b>')`);  assert_equals(result.exception, null);  assert_equals(another_window.document.querySelector('b').outerHTML, '<b>some text</b>');  }, 'document.write of another document must not throw an InvalidStateError when processing custom element reactions for a synchronous constructed custom element');    promise_test(async function () { - window.another_window = await create_window_in_test_async(this); + window.another_window = await create_window_in_test(this);  const result = await custom_element_reactions_in_parser(this, `top.another_window.document.writeln('<b>some text</b>')`);  assert_equals(result.exception, null);  assert_equals(another_window.document.querySelector('b').outerHTML, '<b>some text</b>');